package com.chenfan.filestore.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author: xuxianbei
 * Date: 2020/10/28
 * Time: 17:57
 * Version:V1.0
 */
public class TimeThreadSafeUtils {

    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";

    public static String DateFormatYYYY_MM_DD_HH_MM_SS(LocalDateTime dateTime) {
        return dateTime.format(DateTimeFormatter.ofPattern(YYYY_MM_DD_HH_MM_SS));
    }
}
